package net.zjitc.controller;

import net.zjitc.Product;
import net.zjitc.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

@Controller("productController")
public class ProductController {
    @Resource(name = "productService")
    private ProductService productService;
    public void show(){
        Product all = productService.findAll();
        System.out.println(all);
    }
}
